/*
 *  Copyright 2002 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) RF5_IEK 1.20.07 09-26-02 (swat-c12)" */
/*
 *  ======== celljpegdec.h ========
 */

#ifndef CELLJPEGDEC_
#define CELLJPEGDEC_

#include <icell.h>
#include "ijpegdec.h"

#ifdef __cplusplus
extern "C" {
#endif

// v-table for this cell 
extern ICELL_Fxns JPEGDEC_CELLFXNS;

// v-table for this cell's algorithm
extern far IJPEGDEC_Fxns JPEGDEC_IJPEGDEC;

/*
 *  ======== JPEGDEC_cellClose ========
 *
 */
extern Bool JPEGDEC_cellClose( ICELL_Handle handle );

/*
 *  ======== JPEGDEC_cellExecute ========
 *  Function used to execute the algorithm corresponding to the cell 
 */
extern Bool JPEGDEC_cellExecute( ICELL_Handle handle, Arg arg );

/*
 *  ======== JPEGDEC_cellOpen ========
 *
 */
extern Bool JPEGDEC_cellOpen( ICELL_Handle handle );

/* 
 * ======== JPEGDEC cell environment ========
 */
typedef struct JPEGDEC_Env {
    Char * butterflyIntBuf;
    Char * procIntBuf;
    Char * intYBuf;
    Char * intCrBuf;
    Char * intCbBuf;
} JPEGDEC_Env;

#ifdef __cplusplus
}
#endif // extern "C" 

#endif // CELLJPEGDEC_


